package com.candy.oop4;

public class Test01 {
    public static void main(String[] args) {
        Apple a=new Apple();
        a.juice();
//        Fruit f=new Fruit();
//        子类在调用属性时，会先从子类本身中进行查找，若没有，再从父类中进行查找
        System.out.println(a.type);
        a.getInfomation();


    }
}
